{template "content","header", "default"}
{template "content","header_public", "default"}

<script>

	function toubiao(typeid){
		if(typeid!=2){
			alert('你所在的用户组不允许投标，只有公司用户才可以投标');
			return false;
			
		}
		$('#tbiao').toggle();
		
	}
	function dealtoubiao(typeid){
		
	}
	//$.post('http://cq.zhuang.com/phpcms/index.php?m=member&c=index&a=mini',function(data){
	//	
	//	alert(data);
	//});
</script>
<!-- 内容begin-->
<div id="m_company">
  <div class="weizhi01">你所在的位置：装饰招标</div>
  <div id="zszhaobiao01_b">
    <div class="zszhaobiao01_title">
      <h1>装饰招标</h1>
      <tt><a href="{APP_PATH}index.php?m=content&c=user&a=publish_zhaobiao">免费发布招标信息</a></tt></div>
    <div class="line"></div>
    <div class="zszhaobiao01_b_tt">
      <h1>{$title}</h1>
      <span>装修招标</span></div>
    <div class="zszhaobiao01_b_ll">
      <dl>
        <dt>装修业主：</dt>
        <dd>{$name}</dd>
      </dl>
      <dl>
        <dt>所在地址：</dt>
        <dd style="color:#ff6600; font-weight:bold;">{$title}</dd>
      </dl>
	  <dl>
        <dt>区域：</dt>
        <dd>{$area}</dd>
      </dl>
      <dl>
        <dt>装修面积：</dt>
        <dd>{$size}</dd>
      </dl>
      <dl>
        <dt>装修预算：</dt>
        <dd>{$budget}</dd>
      </dl>
      <dl>
        <dt>空间类型：</dt>
        <dd>{get_linkagevalue(3377,$decoration_space,'name')}</dd>
      </dl>
      <dl>
        <dt>装修户型：</dt>
        <dd>{get_linkagevalue(3377,$house_type,'name')}</dd>
      </dl>
	  <dl>
        <dt>装修空间：</dt>
        <dd>{$decoration_space}</dd>
      </dl>
      
      <dl>
        <dt>详细需求：</dt>
        <dd>{$description}</dd>
      </dl>
     {php $userid = get_userid();if($userid){$user = get_memberinfo($userid);}}
      <input name="Input" type="button" {if $user['typeid']>0 }onclick="return toubiao({$user['typeid']});" {else} onclick="location.href='{APP_PATH}index.php?m=member&c=index&a=login&forward={urlencode(HTTP_REFERER)}&siteid={$siteid}';" {/if} value="我要投标" class="inputbutton11 p14 strong" />
    </div>
    <form action="{APP_PATH}index.php?m=member&c=company&a=zhaobiao_reply" method="post">

	    <div class="zszhaobiao01_b_rr"><span>发布招标</span><span>公司竞标</span><span>在线签约/签订合同</span><span>装修实施/在线评价</span></div>
	   
	  	<input type="hidden" value="{$username}" name="info[username]"/ >
	  	<input type="hidden" value="{$user[userid]}" name="info[userid]"/ >
	    <div class="zszbcompang" id="tbiao" style="display:none">
	      <dl>
	        <dd><strong>推荐参考案例： </strong>
	            <input name="info[caseurl]"  readonly value="{APP_PATH}index.php?m=content&c=company&a=c_case&userid={$user[userid]}" type="text" class="input" />
	        </dd>
	        <dd><strong>参考报价方案：</strong>
	             {pc:content action="lists" moreinfo="1" catid="23" num="25" username="$user[username]" order="id DESC" page="$page"}
	       <select name="info[quotation]">
	       {loop $data $r}
	       <option value="{$r[attatchment]}">{$r[title]}</option>
	       
	       {/loop}		
	       </select>	
			{/pc}
	          <font color="#666666"> <!-- 你还未添加报价方案</font> --> >><a  target="_blank" href="{APP_PATH}index.php?m=member&c=content&a=publish&siteid=1&catid=23">现在添加报价方案</a></dd>
	        <dd>
	          <label>回复说明：</label>
	          <textarea name="info[remark]" cols="" rows="" class="input001"></textarea>
	        </dd>
	        <input name="dosubmit" type="submit" onclick="dealtoubiao({$user['typeid']})" value="我要回复" style="font-size:14px; font-weight:bold; width:150px; height:30px; margin-left:150px;  margin-top:18px; *margin-top:24px;" />
	      </dl>
	    </div>
    	
    </form>
     {pc:content action="list_zhaobiao_reply" catid="23" num="25" username="$username" order="id DESC" page="$page"}
	      
	       {loop $data['data'] $r}
    <div class="zszbcompang">
       
	      
	       
   
      <div class="zszbcompang_title">
        <h3><a href="{APP_PATH}index.php?m=content&c=company&a=company_index&userid={$r[userid]}">{$r[companyname]}</a></h3>
        <a target="_blank" href="{APP_PATH}index.php?m=content&c=company&a=signed&userid={$r[userid]}" style="float:left; margin-top:12px; margin-right:12px; text-decoration:underline; color:#888; font-size:12px; font-weight:bold;">在线签约</a>
        <div class="t">{date("Y-m-d", $r[inputtime])}</div>
        <div class="m"><a href="{APP_PATH}index.php?m=content&c=company&a=c_case&userid={$r[userid]}">查看该公司>></a></div>
      </div>
      <p style="float:left; text-indent:2em;"> {$r[remark]}</p>
       
    </div>
    {/loop}		
	    <div class="more">{$data['page']['nav']}</div>
	{/pc} 
  </div>
  <div id="cpy_r01">
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=15">打折公告/团购信息</a></h2>
        <tt><a  href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=15">更多>></a></tt></div>
		 {pc:content action="lists" catid="15" num="9" order="id DESC" page="$page"}
      <div class="zszhaobiao01_b_r_c">
        <ul>
         {loop $data $r}
       	 <li><a href="{$r[url]}"  target="_blank">{$r[title]}</a></li>
		  {/loop}
          
        </ul>
      </div>
	  {/pc}
    </div>
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=10">装饰学堂</a></h2>
        <tt><a  href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=10">更多>></a></tt></div>
      <div class="zszhaobiao01_b_r_c">
        <ul>
          {pc:content action="lists" catid="10" num="9" order="id DESC" page="$page"}
        <ul class="list lh24 f14">
				{loop $data $r}
       	 <li><a href="{$r[url]}"  target="_blank">{$r[title]}</a></li>
			{/loop}
		{/pc}
        </ul>
      </div>
    </div>
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=14">重庆装饰杂谈</a></h2>
        <tt><a  href="{APP_PATH}index.php?m=content&c=index&a=lists&catid=14">更多>></a></tt></div>
      <div class="zszhaobiao01_b_r_c">
        <ul>
          {pc:content action="lists" catid="14" num="9" order="id DESC" page="$page"}
        <ul class="list lh24 f14">
				{loop $data $r}
       	 <li><a href="{$r[url]}"  target="_blank">{$r[title]}</a></li>
			{/loop}
		{/pc}
        </ul>
      </div>
    </div>
  </div>
</div>
</div>
</div>
<!-- 内容end-->


{template "content","footer"}